//
//  BaseZJPOPView.m
//  MarryBackEnd
//
//  Created by mac on 2020/8/6.
//  Copyright © 2020 WPP. All rights reserved.
//

#import "BaseZJPOPView.h"

@interface BaseZJPOPView ()

@end

@implementation BaseZJPOPView
- (instancetype)initWithFrame:(CGRect)frame popStyle:(ZJAnimationPopStyle)popStyle dismissStyle:(ZJAnimationDismissStyle)dismissStyle parentView:(UIView *)parentView
{
    if (self = [super initWithFrame:frame]) {
        
        self.backgroundColor = WhiteColor;
        self.frame = CGRectMake(0, 0, frame.size.width, frame.size.height);
        
        ZJAnimationPopView *view = [[ZJAnimationPopView alloc]initWithCustomView:self popStyle:popStyle dismissStyle:dismissStyle];
        view.isClickBGDismiss = YES;
        view.popBGAlpha = 0.5;
        [view pop];
        [parentView addSubview:view];
        self.popView = view;
    }
    return self;
}
- (void)dealloc
{
    NSLog(@"BaseZJPOPView ---dealloc");
}
- (void)pop
{
    [self.popView pop];
}
- (void)dismiss
{
    [self.popView dismiss];
}
@end
